﻿#coding=utf-8
from django.http import HttpResponse
from django.shortcuts import render_to_response
from handle import *

def scheduler(request):
	return render_to_response('scheduler.html')
	

def data(request):
	result=GetEvent()
	return HttpResponse(result)
	
def modifydata(request):
	result=request.POST
	if str(result['flag'])==str('1'):
		ModifyEvent(result)
	elif str(result['flag'])==str('2'):
		DelEvent(result['id'])
